.bg-red {
  background: $guess-red;
  height: 100%;
}
.bg-white{
  background: white;
}
.bg-grey {
  background: $bg-grey;
}

.bg-packet-grey {
  background: $packet-grey;
}

.text-yellow {
  color: $text-yellow !important;
}
.white{
  color: $light;
}
.text-coff {
  color: $coff;
}
.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.has-footer {
  bottom: 55px !important;
}

.text-grey{
  color: $text-grey;
}

.light-grey {
  color: $light-grey;
}

.height-inherit {
  height: inherit !important;
}

.inline-block {
  display: inline-block !important;
}

.img_margin_zero{
  font-size: 0;
}
.center-block{
  margin: 0 auto;
}
.main{
  min-width: 320px;
  max-width: 750px;
  margin: 0 auto;
}

.no-border-bottom{
  border-bottom: none !important;
}

.no-border-right{
  border-bottom: none !important;
}

.no-margin-bottom{
  margin-bottom: 0 !important;
}

@for $i from 1 through 10 {
  @each $style in width, height {
    .#{$style}-#{$i*10} {
      #{$style}: $i * 10% !important;
    }
  }
}

$positions: top, right, bottom, left;
// padding and margin
// 逆时针
// padding-5
// padding-top-5
@for $i from 1 through 10 {
    @each $style in padding, margin {
        .#{$style}-#{$i*5} {
            #{$style}: $i * 5px !important;
        }
        @each $position in $positions {
            .#{$style}-#{$position}-#{$i * 5} {
                #{$style}-#{$position}: $i * 5px !important;
            }
        }
    }
}

// no-padding and margin
// 逆时针
// no-padding
// no-padding-top
@each $style in padding, margin {
    .no-#{$style} {
        #{$style}: 0 !important;
    }
    @each $position in $positions {
        .no-#{$style}-#{$position} {
            #{$style}-#{$position}: 0 !important;
        }
    }
}

.flex {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
}

.flex-center-x {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-flex-direction: row;

  -webkit-box-pack: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.flex-center-y {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-flex-direction: row;

  -webkit-box-align: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.flex-center {
  @extend .flex-center-x;
  @extend .flex-center-y;
}

.flex-left {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-flex-direction: row;

  -webkit-box-pack: flex-start;
  -moz-box-pack: flex-start;
  -ms-flex-pack: flex-start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
}

.flex-right {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-flex-direction: row;

  -webkit-box-pack: flex-end;
  -moz-box-pack: flex-end;
  -ms-flex-pack: flex-end;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
}
.flex-bottom-y {
  display: -webkit-box !important;
  display: -moz-box !important;
  display: -ms-flexbox !important;
  display: -webkit-flex !important;
  display: flex !important;

  // -webkit-flex-direction: row;
  // -webkit-box-pack: flex-end;
  // -moz-box-pack: flex-end;
  // -ms-flex-pack: flex-end;
  // -webkit-justify-content: flex-end;
  // justify-content: flex-end;

  -webkit-box-align: flex-end;
  -moz-box-align: flex-end;
  -ms-flex-align: flex-end;
  -webkit-align-items: flex-end;
  align-items: flex-end;
}

.underline {
  text-decoration: underline !important;
}

.col-70 {
  width: 70%;
  margin: 0;
}
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, 
.col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, 
.col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, 
.col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, 
.col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, 
.col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {padding: 0;}
.row-short-line {
  >.col {
    position: relative;
    // border-left: 1px solid $line-grey;
  }
  >.col:after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    content: ' ';
    border-left: 1px solid $line-grey;
    -moz-transform: scaleX(0.5);
    -ms-transform: scaleX(0.5);
    -o-transform: scaleX(0.5);
    -webkit-transform: scaleX(0.5);
    transform: scaleX(0.5);
  }
  >.col:last-child:after {
    border-style: none;
  }
}
// .popup{
//   background: transparent !important;
// }
.present-popup, .unlock-popup, .rule-popup{
  background: rgba(0,0,0,0.5) !important;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: none;

  .popup_body{
    padding: 1rem 0.5rem;
    background: #fff2c5;
    width: 65%;
    margin: 0 auto;
  }
  .popup_title{
    background: url(../img/unlock/title1.png) top center no-repeat;
    background-size: 80%;
    color: #fff2c5;
    font-size: 1rem;
    padding: 0.2rem 0 0.5rem;
  }
  .close-popup-btn{
    width: 60%;
    border-radius: 24px;
    position: static;
    padding: 0.2rem 0.6rem;
    border: none;
    color: white;
    background: $unlock-bg;
    font-size: 0.9rem;
    box-shadow: 0 5px #e77f30;
    margin: 1rem auto 0;
  }
}

.rule-popup{
  ul{
    padding-left: 1rem;
    list-style: decimal;
    margin: 0 auto;
  }
}
.present-popup{
  .method{
    font-size: 0.8rem;
  }
}

@media(min-device-height: 568px){
  .present-popup, .unlock-popup, .rule-popup{
    .popup_title{
      font-size: 1rem;
      padding: 0.2rem 0 0.5rem;
    }
  }
}
@media(min-device-height: 667px){
  .present-popup, .unlock-popup, .rule-popup{
    .popup_title{
      font-size: 1.1rem;
      padding: 0.3rem 0 0.5rem;
    }
  }
}
@media(min-device-height: 736px){
  .present-popup, .unlock-popup, .rule-popup{
    .popup_title{
      font-size: 1.1rem;
      padding: 0.3rem 0 0.6rem;
    }
  }
}

.text-cof{
  color: #752110;
}

.border-bottom{
  border-bottom: 1px solid $line-grey;
}


